Computer and Modernization ›› 2011, Vol. 1 ›› Issue (8): 32-38.doi: 10.3969/j.issn.1006-2475.2011.08.010

• 软件工程 • Previous Articles     Next Articles

Study on Approach for Test Case Generation Based on UML Collaboration Diagram and DFA

LI Qing-song1, ZHANG Ye2   

  1. 1. Jiangxi Provincial Education Examination Authority, Nanchang 330006, China;2. School of Software, Nanchang Hangkong University, Nanchang 330063, China
  • Received:2011-04-06 Revised:1900-01-01 Online:2011-08-10 Published:2011-08-10

Abstract: UML collaborative diagram describes objects interaction and the message transferring procedure between objects. So the test scenarios can be generated according to the message flow and control flow in UML collaborative diagram. After analyzing the relationship between UML collaborative diagram and deterministic finite automata(DFA), this paper presents a method of converting an UML collaborative diagram to a DFA model, then generates test scenarios and test cases based on DFA. Finally, this method is applied to test case generation of one real project “manhour quota management system”. Through the data comparison and analysis of the results, the method is proved effective and practical.

Key words: UML collaborative diagram, deterministic finite automata, test case

CLC Number: